const KEY = 'hkzfToken'
const key = 'hkzfHouseValue'
const twoCitey = 'twoCityName'
const city = 'cityObj'
const ctiyDef = 'defalutCity'
const communtiy = 'communtiy'

// 设置token
export const setToken = (token) => {
  localStorage.setItem(KEY, token)
}
// 获取token
export const getToken = () => {
  return localStorage.getItem(KEY)
}
// 删除token
export const delToken = () => {
  localStorage.removeItem(KEY)
}

// house 信息
// 设置token
export const setHouse = (token) => {
  localStorage.setItem(key, token)
}
// 获取token
export const getHouse = () => {
  return localStorage.getItem(key)
}
// 二级信息
export const settwo = (token) => {
  localStorage.setItem(twoCitey, token)
}
//
export const getTwo = () => {
  return localStorage.getItem(twoCitey)
}

export const setcitycount = (token) => {
  return localStorage.getItem(city, token)
}
export const getcitycount = () => {
  localStorage.setItem(city)
}

export const setefalutCity = (token) => {
  return localStorage.setItem(ctiyDef, token)
}
export const getfalutCity = () => {
  localStorage.setItem(ctiyDef)
}
// 区域 三级
export const setThreeCity = (token) => {
  localStorage.setItem('ThreeCity', token)
}

// 存储communtiy数据
export const setCommuntiy = (token) => {
  localStorage.setItem(communtiy, token)
}
// 获取
export const getCommuntiy = () => {
  return localStorage.getItem(communtiy)
}
// // 删除
export const delCommuntiy = () => {
  localStorage.removeItem(communtiy)
}
